package com.chinacoal.microservice.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.chinacoal.microservice.pojo.CcmsSmartleasingIndicatorProport;
import com.chinacoal.microservice.pojo.CcmsSmartleasingIndicatorProportVO;


/**
 * 考核管理-指标项占比mapper类
 * @author wiilead
 *
 */
public interface CcmsSmartleasingIndicatorProportMapper extends BaseMapper<CcmsSmartleasingIndicatorProport>{
	/**
	 * 根据考核Id全量删除
	 * @param assessmentId
	 */
	void deleteByAssessmentId(@Param("assessmentId") String assessmentId);
	
	/**
	 * 查询该考核下的指标信息
	 * @param assessmentId
	 * @return
	 */
	List<CcmsSmartleasingIndicatorProportVO> selectIndicatorProportByAssessmentId(@Param("assessmentId") String assessmentId,
																			 	@Param("createdBy") Integer createdBy);
}
